<cfapplication name="smtpexampleapp" sessionmanagement="yes" />

<cflock scope="server" timeout="5">
<cfscript>
	// initialize the server variables if necessary
	if ((Not StructKeyExists(server, "inited") OR 
		Not server.inited) OR 
		(StructKeyExists(url, "init") AND url.init)) {
		
		/* put ormService object in server scope
			so we don't take this hit every time */

		server.smtpServer = createObject("component","SMTPServer").init("2525");

		server.inited = true;
	}
	request.smtpServer = server.smtpServer;	
</cfscript>
</cflock>
